<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Welcome extends CI_Controller {

	/**
	 * Index Page for this controller.
	 *
	 * Maps to the following URL
	 * 		http://example.com/index.php/welcome
	 *	- or -  
	 * 		http://example.com/index.php/welcome/index
	 *	- or -
	 * Since this controller is set as the default controller in 
	 * config/routes.php, it's displayed at http://example.com/
	 *
	 * So any other public methods not prefixed with an underscore will
	 * map to /index.php/welcome/<method_name>
	 * @see http://codeigniter.com/user_guide/general/urls.html
	 */
	public function view()
	{
		echo '<h1>hi ydphp</h1>';
		//echo $this->uri->segment(3);
		// $this->load->helper('smiley');
		// $this->load->library('table');

		// $image_array = get_clickable_smileys('http://192.168.10.250/~huangyd/lulucms/user_guide/images/smileys/', 'comments');

		// $col_array = $this->table->make_columns($image_array, 8);

		// $data['smiley_table'] = $this->table->generate($col_array);

		// $this->load->view('smiley_view', $data);
		//echo "5555";
		# code...
	}
	public function index()
	{
		echo '<h1>hi ydphp</h1>';
		//$this->load->view('welcome_message');
		// $this->load->library('zip');
		// $name = 'mydata1.txt';
		// $data = 'A Data String!';

		// $this->zip->add_data($name, $data);

		// // 在你的服务器的文件夹里写.zip文件。命名为"my_backup.zip"
		// $this->zip->archive('/11/my_backup.zip');

		// 下载此文件到桌面，命名为"my_backup.zip"
		// $this->zip->download('my_backup.zip'); 
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */